package com.weshare.nd.model;

import java.io.Serializable;

public class ChatMessage implements Serializable {
    private String command;
    private String clientName;
    private String msg;

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ChatMessage(){}

    public ChatMessage(String command, String clientName, String msg) {
        this.command = command;
        this.clientName = clientName;
        this.msg = msg;
    }

    public void set(String command, String clientName, String msg){
        this.command = command;
        this.clientName = clientName;
        this.msg = msg;
    }


    @Override
    public String toString() {
        return "ChatMessage{" +
                "command='" + command + '\'' +
                ", clientName='" + clientName + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
